// ------------------------------ 整体页面样式
// 约束范围、居中
body {
    min-width: 320px;
    max-width: 750px;
    margin: 0 auto;
    background-color: #eff3f4;
}
// 屏幕宽度>750px时，font-size限制为37.5px
@media screen and (min-width: 750px) {
    html {
        font-size: 37.5px!important;
    }
}

// ------------------------------- 通用样式
a {
    text-decoration: none;
    color: #707070;
}

// ------------------------------- 第一个大容器
.wrap {
    background-color: #fff;
    padding-bottom: 1.1467rem;
}

// -------------------------------头部区域
// 注意：flexible.js要改为20份，不是默认的10份，否则看着太大
.header {
    height: 2.1333rem;
    border-bottom: 1px solid #eaeaea;
    color: #1c1c1c;
    font-size: .9333rem;
    line-height: 2.1333rem;
    text-align: center;
}

// -------------------------------- 导航栏区域
.nav {
    display: flex;
    flex-wrap: wrap;
    padding: 1.2rem 0 1.6rem 0;
    .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 33.33%;
        img {
            width: 3.7067rem;
            border-radius: 3.1867rem;
        }
        span {
            font-size: .6667rem;
        }
        &:nth-child(-n+3) {
            margin-bottom: 1.6533rem;
        }
    }
}

// ---------------------------------- go模块
.go {
    padding: 0 .2667rem;
    img {
        width: 100%;
    }
}

// ----------------------------------- content模块
.content {
    padding: 1.0667rem .64rem;
    margin-top: .2667rem;
    background-color: #fff;
    // ------------- 就业指导：头部（和充电学习共用）
    .con-hd {
        display: flex;
        justify-content: space-between;
        height: 1.0133rem;
        line-height: 1.0133rem;
        h4 {
            margin: 0;
            color: #333;
            font-size: .7467rem;
            .icon {
                display: inline-block;
                width: 1.0133rem;
                height: 1.0133rem;
                img {
                    width: 100%;
                    height: 100%;
                    border-radius: .5067rem;
                    vertical-align: middle;
                }
            }
        }
        .more {
            color: #999;
            font-size: .72rem;
        }
    }
    // ------------- 就业指导：内容
    .con-bd {
        // 需要父容器添加定位，才能限制箭头位置
        position: relative;
        margin-top: .9067rem;
        // 轮播图css样式
        .swiper-container {
            // 需求：限制宽度为540px
            width: 14.4rem;
            // width: 100%;
            height: 100%;
        }
        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;
            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            // 纵向
            flex-direction: column;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
            transition: 300ms;
            // 缩放
            transform: scale(0.8);
            // 透明
            opacity: 0.4;
            a {
                width: 9.0133rem;
                height: 10.0267rem;
                img {
                    width: 100%;
                    height: 100%;
                }
            }
            p {
                width: 9.0133rem;
                margin-top: .64rem;
                color: #333;
                font-size: .6667rem;
            }
        }
        // 当前的轮播图：也就是中间那张
        .swiper-slide-active,
        .swiper-slide-duplicate-active {
            z-index: 999;
            transform: scale(1);
            opacity: 1;
        }
    }
    // ------------- 充电学习：内容
    .con-study {
        // 添加定位、溢出隐藏：否则分页原点不见，图片溢出可视区
        // 或者：给父容器添加【swiper-container】类，因为该类封装了这些属性样式
        // position: relative;
        // overflow: hidden;
        margin-top: .9067rem;
        .myStudy-container {
            padding: .2667rem;
        }
        .swiper-slide {
            width: 7.7333rem;
            height: 9.0667rem;
            // text-align: center;
            font-size: 18px;
            border-radius: .2667rem;
            box-shadow: 0 0 10px rgba(0, 0, 0, .1);
            background: #fff;
            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            flex-direction: column;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
            h5 {
                margin: .5333rem 0;
                padding: 0 .2667rem;
                font-size: .6933rem;
                font-weight: 400;
            }
            p {
                align-self: flex-start;
                margin: 0;
                padding-left: .8rem;
                font-size: .64rem;
                color: #ff4400;
            }
        }
        .swiper-slide img {
            display: block;
            // width: 100%;
            // height: 100%;
            width: 7.9733rem;
            height: 5rem;
            object-fit: cover;
        }
    }
}

.content-study {
    // 避免被底部栏遮住
    padding-bottom: 3.7333rem!important;
}

// ----------------------------------- footer模块
.footer {
    z-index: 999;
    display: flex;
    position: fixed;
    bottom: 0;
    left: center;
    max-width: 20rem;
    width: 100%;
    height: 2.9333rem;
    padding: .5333rem;
    border-top: 1px solid #ccc;
    background-color: #fff;
    box-sizing: border-box;

    .item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        img {
            width: 1.04rem;
            height: 1.0933rem;
        }
        p {
            font-size: .5867rem;
            color: #666;
            margin: .2667rem 0;
        }
    }
}